<?php

use Illuminate\Database\Seeder;

class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $user = \App\Models\User::where('name', 'admin')->first();

        if(!$user){
            \DB::table('users')->insert([
                'name' => 'admin',
                'email' => 'admin@gulgine.cn',
                'password' => bcrypt('123456'),
                'type' => 1
            ]);
        }
    }
}
